tests: Add a test ensuring currentColor is parsed everywhere
authorBenjamin Otte <otte@redhat.com>
Thu, 5 Apr 2012 20:29:07 +0000 (22:29 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2012 06:59:20 +0000 (08:59 +0200)
tests/css/parser/Makefile.am
tests/css/parser/currentcolor-everywhere.css [new file with mode: 0644]

index bc9cf33f7373bac5811a9d414317ec560fac361e..dcc8b8274b0db35dd87dd5a2efba2816621a54fd 100644 (file)
@@ -185,6 +185,7 @@ EXTRA_DIST += \
        css-21-malformed-statements.css \
        css-21-malformed-statements.errors \
        css-21-malformed-statements.ref.css \
+       currentcolor-everywhere.css \
        declarations.css \
        declarations.errors \
        declarations.ref.css \
diff --git a/tests/css/parser/currentcolor-everywhere.css b/tests/css/parser/currentcolor-everywhere.css
new file mode 100644 (file)
index 0000000..6198fb0
--- /dev/null
@@ -0,0 +1,21 @@
+@define-color some-color currentColor;
+
+a {
+  color: currentColor;
+}
+
+b {
+  color: shade (currentColor, 1.5);
+}
+
+c {
+  color: alpha (currentColor, 0.5);
+}
+
+d {
+  color: mix (currentColor, @some-color, 0.5);
+}
+
+e {
+  color: mix (@some-color, currentColor, 0.5);
+}